import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:search_people/utils/component/list/section.dart';
import 'package:search_people/utils/key_val_model.dart';
import 'package:search_people/utils/util.dart';

class DynamicSearchState {
  late List<SectionModel> results;
  late List<SectionModel> initList;
  List<KeyValModel>? his;
  String? searchInputText;
  TextEditingController? tc;
  bool get isSearching {
    if (isNilStr(searchInputText)) {
      return false;
    }
    return true;
  }

  DynamicSearchState() {
    results = [];
    initList = [];
    tc = TextEditingController();
  }
}
